<template>
	<view class="copyright">
		<view class="item">Copyright 2020-{{year}}.</view>
		<view class="item">{{ config.appName }} 版权所有</view>
	</view>
</template>

<script>
	import { about } from "@/app.config.js";

	export default {
		props:["theme"],
		data() {
			return {
				config: about,
				year: 2021
			};
		},
		created() {
			this.year = (new Date).getFullYear()
		}
	};
</script>

<style lang="scss" scoped>
	.copyright {
		width: 100%;
		height: auto;
		float: left;
		margin-top: 100px;
		text-align: center;

		.item {
			font-size: 20rpx;
			color: rgba(0, 0, 0, 0.4);
			line-height: 40rpx;
		}
	}
</style>
